package cn.bdqn.service.impl;

import cn.bdqn.dao.IntegralMapper;
import cn.bdqn.pojo.Integral;
import cn.bdqn.service.IntegralService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IntegralServiceImpl implements IntegralService {
    @Autowired
    IntegralMapper integralMapper;

    @Override
    public List<Integral> listAll() {
        return integralMapper.listAll();
    }

    @Override
    public int del(Integer id) {
        return integralMapper.del(id);
    }

    @Override
    public int insert(Integral integral) {
        return integralMapper.insert(integral);
    }

    @Override
    public Integral listAllByid(Integer id) {
        return integralMapper.listAllByid(id);
    }

    @Override
    public Integer upd(Integral integral) {
        return integralMapper.upd(integral);
    }

    @Override
    public List<Integral> getIntegrall(Integer staffid, String text) {
        return integralMapper.getIntegrall(staffid, text);
    }
}
